<template>
  <div class="bx">
    <!-- zls wefasdfgs-->
    <div class="top">
      <h1 class="title"><span></span>接入设备信息</h1>
      <div class="con">
        <div class="top_con">
          <div>
            <p>
              <img src="../assets/images/lyq.png" alt="" />
            </p>
            <p>交换机</p>
          </div>
          <div>
            <span> 数量：8台 </span>
            <span>状态：在线 </span>
          </div>
        </div>
        <div class="top_con">
          <div>
            <p>
              <img src="../assets/images/lyq.png" alt="" />
            </p>
            <p>交换机</p>
          </div>
          <div>
            <span> 数量：8台 </span>
            <span>状态：在线 </span>
          </div>
        </div>
        <div class="top_con">
          <div>
            <p>
              <img src="../assets/images/lyq.png" alt="" />
            </p>
            <p>交换机</p>
          </div>
          <div>
            <span> 数量：8台 </span>
            <span>状态：在线 </span>
          </div>
        </div>
        <div class="top_con">
          <div>
            <p>
              <img src="../assets/images/lyq.png" alt="" />
            </p>
            <p>交换机</p>
          </div>
          <div>
            <span> 数量：8台 </span>
            <span>状态：在线 </span>
          </div>
        </div>
        <div class="top_con">
          <div>
            <p>
              <img src="../assets/images/lyq.png" alt="" />
            </p>
            <p>交换机</p>
          </div>
          <div>
            <span> 数量：8台 </span>
            <span> 状态：在线 </span>
          </div>
        </div>
      </div>
    </div>
    <div class="bottom">
      <h1 class="title"><span></span>安全检测清单</h1>
      <div class="bo_con">
        <div class="tou">
          <span class="span active">有害程序事件</span>
        </div>
        <div class="content" style="font-size: 16px">
          <el-table :data="tableData" style="width: 100%">
            <el-table-column prop="date" label="序号" width="180">
            </el-table-column>
            <el-table-column prop="name" label="检测项" width="180">
            </el-table-column>
            <el-table-column prop="address" label="风险主机" width="180">
            </el-table-column>
            <el-table-column prop="chuli" label="处理进度" width="200">
            </el-table-column>
            <el-table-column prop="zuij" label="最近发现时间" width="200">
            </el-table-column>
            <el-table-column prop="caoz" label="操作" width="200">
              <el-button size="mini" class="cz">查看详情</el-button>
            </el-table-column>
          </el-table>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: "1",
          name: "僵尸网络事件",
          address: "1",
          chuli: "1/1",
          zuij: "2021-6-15 22:58:20",
          caoz: "查看详情",
        },
        {
          date: "3",
          name: "蠕虫事件",
          address: "1",
          chuli: "1/1",
          zuij: "2021-7-10 16:15:06",
          caoz: "查看详情",
        },
        {
          date: "4",
          name: "计算机病毒事件",
          address: "0",
          chuli: "0/0",
          zuij: "",
          caoz: "查看详情",
        },
        {
          date: "5",
          name: "勒索事件",
          address: "1",
          chuli: "1/1",
          zuij: "2021-7-24 23:52:55",
          caoz: "查看详情",
        },
        {
          date: "6",
          name: "挖矿事件",
          address: "0",
          chuli: "0/0",
          zuij: "",
          caoz: "查看详情",
        },
        {
          date: "7",
          name: "APT事件",
          address: "0",
          chuli: "0/0",
          zuij: "",
          caoz: "查看详情",
        },
        {
          date: "8",
          name: "其他有害程序事件",
          address: "0",
          chuli: "0/0",
          zuij: "",
          caoz: "查看详情",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.cz{
  background-color: #33CABB;
  color: white;
  border-radius: 4px;
}
.bx {
  width: 1200px;
  margin: 0 auto;
  user-select: none;
  background-color: #f5f6fa;
  margin-top: 25px;
  .top {
    height: 150px;
    background-color: white;
    padding: 30px;
    color: white;
    .title {
      font-size: 24px;
      color: black;
      display: flex;
      align-items: center;
      font-weight: bold;
      span {
        height: 28px;
        width: 8px;
        display: inline-block;
        background-color: #33cabb;
        margin-right: 10px;
      }
    }
    .con {
      display: flex;
      justify-content: space-between;
      .top_con {
        width: 200px;
        height: 100%;
        display: flex;
        box-sizing: border-box;
        padding: 20px;
        margin-top: 25px;
        justify-content: space-between;
        border-radius: 4px;
        div {
          p {
            margin: 0;
            text-align: center;
            &:nth-of-type(1) {
              width: 25px;
              height: 25px;
              border: 1px solid;
              border-radius: 50% 50%;
              line-height: 25px;
              display: flex;
              align-items: center;
              justify-content: center;
              margin: 0 auto;
              margin-bottom: 5px;
            }
          }
          img {
            width: 20px;
          }
          &:nth-of-type(2) {
            span {
              display: block;
              &:nth-of-type(1) {
                padding-bottom: 10px;
              }
            }
          }
        }
        &:nth-of-type(1) {
          background-color: #33cabb;
        }
        &:nth-of-type(2) {
          background-color: #f96868;
        }
        &:nth-of-type(3) {
          background-color: #15c377;
        }
        &:nth-of-type(4) {
          background-color: #926dde;
        }
        &:nth-of-type(5) {
          background-color: #638ce8;
        }
      }
    }
  }
  .bottom {
    background-color: white;

    padding: 30px;
    // margin-top: 25px;
    .title {
      font-size: 24px;
      color: black;
      display: flex;
      align-items: center;
      font-weight: bold;
      span {
        height: 28px;
        width: 8px;
        display: inline-block;
        background-color: #33cabb;
        margin-right: 10px;
      }
    }
    .bo_con {
      margin-top: 20px;
      .tou {
        span {
          display: inline-block;
          width: 100px;
          height: 40px;
          text-align: center;
          line-height: 40px;

          &:hover {
            cursor: pointer;
          }
          &:not(:nth-of-type(1)) {
            margin-left: 10px;
          }
        }
      }
      .content {
        ul {
          list-style: none;
          padding: 0;
          display: none;
          li {
            display: flex;
            justify-content: space-between;
            span {
              width: 50px;
              padding: 10px;
              &:not(:nth-of-type(1)) {
                width: 250px;
              }
            }

            &:not(:nth-of-type(1)) {
              .jdt {
                position: relative;
              }
              .jdt::after {
                position: absolute;
                display: block;
                content: "";
                width: 80px;
                height: 10px;
                background-color: #fbb163;
                top: 50%;
                left: 0;
                transform: translate(10px, -5px);
              }
              span {
                &:last-of-type {
                  color: #265ee2;
                  cursor: pointer;
                }
                &:nth-of-type(3) {
                  position: relative;
                }
              }
            }
          }
        }
      }
    }
  }
  .active {
    border-bottom: 2px solid #50d1c5;
  }
  .act_con {
    display: block !important;
  }
  .el-table /deep/ td.el-table__cell div {
    box-sizing: border-box;
    font-size: 14px !important;
  }
  .el-table /deep/ th.el-table__cell > .cell {
    font-size: 14px;
  }
}
</style>
